home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / MIDI_MAN / CMIDITIM.H < prev    next >
Text File  |  1992-03-07  |  1KB  |  38 lines

  1. //--- CMIDITimePort.h --------------------------------------------------------
  2. // Copyright ⌐ Paul Ferguson, 1990, 1991, 1992.  All rights reserved.
  3. //
  4. //
  5. // Description:
  6. //    Refer to the CMIDI Programmer's Manual for a complete desciption of
  7. //    these objects and methods.
  8. //    For use with THINK C 5.0 and the THINK Class Library.
  9. //
  10. //----------------------------------------------------------------------------
  11. #pragma once
  12. #include "CMIDIPort.h"
  13.  
  14. class CMIDITimePort : public CMIDIPort
  15. {
  16. public:
  17.             OSErr    IMIDITimePort(
  18.                         StringPtr    theName,         // Pascal format, 31 char max
  19.                         OSType        thePortID,        // Used when signing into MM
  20.                         Boolean        theVisibleFlag,
  21.                         short        theFormat);        // Initial time format
  22.     virtual    OSErr    LoadPatches(ResType theResType, short theResID);
  23.     virtual    short    GetSync(void);
  24.     virtual    void    SetExternalSync(void);
  25.     virtual    void    SetInternalSync(void);
  26.     virtual    short    UpdateSync(void);
  27.     virtual    long    GetCurTime(void);
  28.     virtual    void    SetCurTime(long theTime);
  29.     virtual    void    StartTime(void);
  30.     virtual    void    StopTime(void);
  31.     virtual    long    GetOffsetTime(void);
  32.     virtual    void    SetOffsetTime(long theOffset);
  33.     virtual    void    WakeUp(long theBaseTime, long thePeriod, ProcPtr theTimeProc);
  34.     virtual    void    SetConnection(ProcPtr theConnectionProc);
  35.     virtual    void    Perform(long * maxSleep);        // Makes this object a CChore
  36. };
  37.  
  38. // end of CMIDITimePort.h